package com.power200.showcase.presenter;

import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.widget.ImageButton;

import com.power200.showcase.R;
import com.power200.showcase.activity.WechatActivity;

/**
 * Created by lenovo on 2015/9/26.
 */
public class DispatchPresenter {

    public void init(final Activity activity) {
        ImageButton wechatButton = (ImageButton) activity.findViewById(R.id.wechatButton);
        wechatButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(activity, WechatActivity.class);
                activity.startActivity(intent);
            }
        });
    }
}
